package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectApowerEntity {
    private Long collectid;
    private Long pkid;
    private Long actid;
    private String actname;
    private Integer ruleid;
    private String rulecode;
    private Integer levelid;
    private String levelcode;
    private Integer appcationid;
    private Integer scrid;
    private String optcode;
    private Integer removeday;
    private Integer raddflag;
    private Integer firstflag;
    private String autofreezerule;
    private String autothawrule;
    private Integer autofreezeflag;
    private Integer autothawflag;
    private Integer status;
    private String remark;
    private Timestamp createdon;
    private String createdby;
    private String createdname;
    private String createdip;

    public Long getCollectid() {
        return collectid;
    }

    public void setCollectid(Long collectid) {
        this.collectid = collectid;
    }

    public Long getPkid() {
        return pkid;
    }

    public void setPkid(Long pkid) {
        this.pkid = pkid;
    }

    public Long getActid() {
        return actid;
    }

    public void setActid(Long actid) {
        this.actid = actid;
    }

    public String getActname() {
        return actname;
    }

    public void setActname(String actname) {
        this.actname = actname;
    }

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public String getRulecode() {
        return rulecode;
    }

    public void setRulecode(String rulecode) {
        this.rulecode = rulecode;
    }

    public Integer getLevelid() {
        return levelid;
    }

    public void setLevelid(Integer levelid) {
        this.levelid = levelid;
    }

    public String getLevelcode() {
        return levelcode;
    }

    public void setLevelcode(String levelcode) {
        this.levelcode = levelcode;
    }

    public Integer getAppcationid() {
        return appcationid;
    }

    public void setAppcationid(Integer appcationid) {
        this.appcationid = appcationid;
    }

    public Integer getScrid() {
        return scrid;
    }

    public void setScrid(Integer scrid) {
        this.scrid = scrid;
    }

    public String getOptcode() {
        return optcode;
    }

    public void setOptcode(String optcode) {
        this.optcode = optcode;
    }

    public Integer getRemoveday() {
        return removeday;
    }

    public void setRemoveday(Integer removeday) {
        this.removeday = removeday;
    }

    public Integer getRaddflag() {
        return raddflag;
    }

    public void setRaddflag(Integer raddflag) {
        this.raddflag = raddflag;
    }

    public Integer getFirstflag() {
        return firstflag;
    }

    public void setFirstflag(Integer firstflag) {
        this.firstflag = firstflag;
    }

    public String getAutofreezerule() {
        return autofreezerule;
    }

    public void setAutofreezerule(String autofreezerule) {
        this.autofreezerule = autofreezerule;
    }

    public String getAutothawrule() {
        return autothawrule;
    }

    public void setAutothawrule(String autothawrule) {
        this.autothawrule = autothawrule;
    }

    public Integer getAutofreezeflag() {
        return autofreezeflag;
    }

    public void setAutofreezeflag(Integer autofreezeflag) {
        this.autofreezeflag = autofreezeflag;
    }

    public Integer getAutothawflag() {
        return autothawflag;
    }

    public void setAutothawflag(Integer autothawflag) {
        this.autothawflag = autothawflag;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectApowerEntity that = (CollectApowerEntity) o;

        if (collectid != null ? !collectid.equals(that.collectid) : that.collectid != null) return false;
        if (pkid != null ? !pkid.equals(that.pkid) : that.pkid != null) return false;
        if (actid != null ? !actid.equals(that.actid) : that.actid != null) return false;
        if (actname != null ? !actname.equals(that.actname) : that.actname != null) return false;
        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (rulecode != null ? !rulecode.equals(that.rulecode) : that.rulecode != null) return false;
        if (levelid != null ? !levelid.equals(that.levelid) : that.levelid != null) return false;
        if (levelcode != null ? !levelcode.equals(that.levelcode) : that.levelcode != null) return false;
        if (appcationid != null ? !appcationid.equals(that.appcationid) : that.appcationid != null) return false;
        if (scrid != null ? !scrid.equals(that.scrid) : that.scrid != null) return false;
        if (optcode != null ? !optcode.equals(that.optcode) : that.optcode != null) return false;
        if (removeday != null ? !removeday.equals(that.removeday) : that.removeday != null) return false;
        if (raddflag != null ? !raddflag.equals(that.raddflag) : that.raddflag != null) return false;
        if (firstflag != null ? !firstflag.equals(that.firstflag) : that.firstflag != null) return false;
        if (autofreezerule != null ? !autofreezerule.equals(that.autofreezerule) : that.autofreezerule != null)
            return false;
        if (autothawrule != null ? !autothawrule.equals(that.autothawrule) : that.autothawrule != null) return false;
        if (autofreezeflag != null ? !autofreezeflag.equals(that.autofreezeflag) : that.autofreezeflag != null)
            return false;
        if (autothawflag != null ? !autothawflag.equals(that.autothawflag) : that.autothawflag != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = collectid != null ? collectid.hashCode() : 0;
        result = 31 * result + (pkid != null ? pkid.hashCode() : 0);
        result = 31 * result + (actid != null ? actid.hashCode() : 0);
        result = 31 * result + (actname != null ? actname.hashCode() : 0);
        result = 31 * result + (ruleid != null ? ruleid.hashCode() : 0);
        result = 31 * result + (rulecode != null ? rulecode.hashCode() : 0);
        result = 31 * result + (levelid != null ? levelid.hashCode() : 0);
        result = 31 * result + (levelcode != null ? levelcode.hashCode() : 0);
        result = 31 * result + (appcationid != null ? appcationid.hashCode() : 0);
        result = 31 * result + (scrid != null ? scrid.hashCode() : 0);
        result = 31 * result + (optcode != null ? optcode.hashCode() : 0);
        result = 31 * result + (removeday != null ? removeday.hashCode() : 0);
        result = 31 * result + (raddflag != null ? raddflag.hashCode() : 0);
        result = 31 * result + (firstflag != null ? firstflag.hashCode() : 0);
        result = 31 * result + (autofreezerule != null ? autofreezerule.hashCode() : 0);
        result = 31 * result + (autothawrule != null ? autothawrule.hashCode() : 0);
        result = 31 * result + (autofreezeflag != null ? autofreezeflag.hashCode() : 0);
        result = 31 * result + (autothawflag != null ? autothawflag.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        return result;
    }
}
